import * as actionTypes from '../action_types';

// 获取菜单
export const saveAttributeAction = (attributeList) =>{
    return{
        type: actionTypes.SAVE_ATTRIBUTE_LIST,
        data:attributeList
    }
}
// 保存所有菜单
export const saveAttributeActionAll = (attributeList) =>{
    return{
        type: actionTypes.SAVE_ATTRIBUTE_LIST_ALL,
        data:attributeList
    }
}
// 保存课程列表清单
export const saveContentListAction = (contentList) =>{
    return {
        type:actionTypes.SAVE_CONTENT_LIST,
        data: contentList
    }
}
// 保存课程列表清单
export const saveRelationListAction = (relationList) =>{
    return {
        type:actionTypes.SAVE_RELATION_LIST,
        data: relationList
    }
}
// 保存上架课程列表清单
export const saveCurriculumListAction = (curriculumList) =>{
    return {
        type:actionTypes.SAVE_CURRICULUM_LIST,
        data: curriculumList
    }
}